package com.dalin.platform.etl.action;

import com.dalin.framework.action.StrutsTwoAction;
import com.dalin.platform.etl.service.EtlService;
import com.dalin.platform.etl.vo.EtlColumnInfoVo;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-11-30 23:01:32                                                     *
 * @modDate: 2010-11-30 23:01:32                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class ColumnInfoAddModAction extends StrutsTwoAction{
	private EtlService etlService; // 
    private EtlColumnInfoVo vo; // 





    public String execute() throws Exception {
        super.printInfo("", "===== this action begin");
        try {
        	if (vo.getColumnId() == null) {
            	etlService.addEtlColumnInfo(vo);
            } else {
            	etlService.modifyEtlColumnInfo(vo);
            }
            setResContent(true,"");
        } catch(Exception e) {
        	setResContent(e);
        }
        super.printInfo("", "===== this action end");
        return null;

    }

    public EtlService getEtlService() {
		return etlService;
	}



	public void setEtlService(EtlService etlService) {
		this.etlService = etlService;
	}


    public EtlColumnInfoVo getVo() {
        return vo;

    }

    public void setVo(EtlColumnInfoVo vo) {
        this.vo = vo;

    }

}
